<?=use_lightbox()?>
<script language='javascript' type='text/javascript' src="<?=base_url('get_images')?>scripts/get_image.js"></script>

<script language='javascript' type='text/javascript' src="<?=base_url('members')?>scripts/members.js"></script>
<?php echo form_open($this->members_detail_model->url_prefix, array('enctype'=>'multipart/form-data')); ?>
<?if($msg){?><center><div class="messageBox"><?=$msg?></div></center><?}?>
<table border="0" cellspacing="0" cellpadding="0" class="infoTable">
  <tr>
    <td id='infoStr'>Tên thành viên *:</td>
    <td id='infoInput' align='left'><input name="fullname" id="fullname" type="text" value="<?=h($fullname)?>" size="30" /><?=form_error('fullname');?></td>
  </tr>
  
  <tr>
    <td id='infoStr'>Tên đăng nhập *:</td>
    <td id='infoInput' align='left'><input name="login_email" id="login_email" type="text" value="<?=h($login_email)?>" size="30" /><?=form_error('login_email');?></td>
  </tr>
  
  <tr>
    <td id='infoStr'>Mật khẩu *:</td>
    <td id='infoInput' align='left'><input name="password" id="password" type="password" value="" size="30" /><?=form_error('password');?></td>
  </tr>
  
  <tr>
    <td id='infoStr'>Xác nhận Mật khẩu *:</td>
    <td id='infoInput' align='left'><input name="repassword" id="repassword" type="password" value="" size="30" /><?=form_error('repassword');?></td>
  </tr>
  <tr>
    <td id='infoStr'>Image :</td>
    <td id='infoInput' align='left'>
    	<input type="file" size="30" name="imagepath" size="60" maxlength="255" />
    	<img name="image_url" id="image_url" src="<?=base_url()?>application/assets/admin/images/non.jpg" align="top" />   
			
    				
    </td>
  </tr>
  
  <tr>
    <td id='infoStr'>Địa chỉ *:</td>
    <td id='infoInput' align='left'><input name="address" id="address" type="text" value="<?=h($address)?>" size="30" /></td>
  </tr>
  <tr>
    <td id='infoStr'>Loại thành viên:</td>
    <td id='infoInput' align='left'>
		<select name="type">
			<option value="0" <?=($type==0)?'selected':''?> >Thường</option>
			<option value="1" <?=($type==1)?'selected':''?> >Đặc biệt</option>
		</select>
	</td>
  </tr>
  <tr>
    <td id='infoStr'>Trình độ học vấn:</td>
    <td id='infoInput' align='left'>
		<select name="qualification">
			<option value="0" <?=($qualification==0)?'selected':''?> >-- Chọn --</option>
			<option value="1" <?=($qualification==1)?'selected':''?> >Phổ Thông</option>
			<option value="2" <?=($qualification==2)?'selected':''?> >Trung Cấp</option>
			<option value="3" <?=($qualification==3)?'selected':''?> >Cao Đẳng</option>
			<option value="4" <?=($qualification==4)?'selected':''?> >Đại Học</option>
			<option value="5" <?=($qualification==5)?'selected':''?> >Trên Đại Học</option>
		</select>
	</td>
  </tr>
  <tr>
    <td id='infoStr'>Thông tin thành viên:</td>
    <td id='infoInput' align='left'>{infomation}</td>
  </tr>
  <tr>
    <td id='infoStr'>Hiển thị:</td>
    <td id='infoInput' align='left'><input name="active" type="checkbox"{active} /></td>
  </tr>
  <tr>
    <td id='infoStr'>&nbsp;</td>
    <td id='infoInput' align='left'>
        <input type="button" value="Lưu" class="save_button" style="cursor:pointer" onclick="return members.saveItem({start}, {item})" />&nbsp;
        <input type="button" value="Quay về" class="cancel_button" style="cursor:pointer" onclick="members.cancel({start})" />
    </td>
  </tr>
</table>
</form>